<?php
require_once("../patterns/singleton.php");

class TestSingleton extends Singleton {
	
	protected $protectedAttr ="TheName";
	
	public static function setClassName(){
		return __CLASS__;
	}
	
	public function getProtectedAttr(){
		return $this->protectedAttr;
	}
}

$ts = TestSingleton::getInstance();
echo "protectedAttr = $ts->getProtectedAttr()"; 
?>